package cn.s1995.sloth.app.api.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * AddUserRoleDTO
 *
 * @author Lex
 * @description
 * @date 2024/04/17 10:46
 */
@Data
@Schema(description = "添加用户角色")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AddUserRoleDTO {

    /**
     * 用户id
     */
    @Schema(description = "用户id")
    @NotNull
    private Long userId;

    /**
     * 角色id集合
     */
    @Schema(description = "角色id集合")
    private List<Long> roleIdList;
}
